package cn.gmcx.lazy.izze.config;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClient;
import lombok.Data;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author gaojun
 * @desc
 * @email 15037584397@163.com
 */
@Configuration
@Data
public class AliyunConfig {
    public static final String endpoint = "oss-cn-hangzhou.aliyuncs.com";
    public static final String accessKeyId = "LTAI5t9cJmCCtb7S1FLfHDAG";
    public static final String accessKeySecret = "jO04wbTLw2Ok9iSwuqfFHqAU0K6raS";
    public static final String bucketName = "lzze";

    @Bean
    public static OSS oSSClient() {
        return new OSSClient(endpoint, accessKeyId, accessKeySecret);
    }
}
